<?php

class Comanda extends MY_Model {


 
   function Comanda()
    {
        // Call the Model constructor
        parent::MY_Model();
                $this->setTituloModificar("Modificar Comanda");
                $this->setTituloListado("Comandas");
                $this->setTituloCrear("Crear Comandas");
                
                $this->nombreTabla = "comanda";
                $this->idT1= "idcomanda";
                $this->nombreCampo = "numero";

                $this->campos[] = array("realname" => "numero",
                                        "clase" => "text",
                                        "label" => "N&uacute;mero",
                                        "rules" => "integer");

                $this->campos[] = array("realname" => "idestadocomanda",
                                        "clase" => "opciones",
                                        "label" => "Estado de comanda",
                                        "modelo" => "estadocomanda",
                                        "rules" => "required|integer");
                
                $this->campos[] = array("realname" => "tipocomanda",
                                        "clase" => "text",
                                        "label" => "Tipo de comanda",
                                        "rules" => "required|min_length[1]|max_length[45]|texto");
                
                $this->campos[] = array("realname" => "fecha",
                                        "clase" => "date",
                                        "label" => "Fecha",
                                        "rules" => "fecha");

                $this->campos[] = array("realname" => "total",
                                        "clase" => "text",
                                        "label" => "Total",
                                        "rules" => "required|integer");

                $this->campos[] = array("realname" => "localidad",
                                        "clase" => "text",
                                        "label" => "Localidad",
                                        "rules" => "max_length[45]|texto");

                $this->campos[] = array("realname" => "hora",
                                        "clase" => "time",
                                        "label" => "Hora",
                                        "rules" => "integer");

                $this->campos[] = array("realname" => "tiempo",
                                        "clase" => "time",
                                        "label" => "Tiempo",
                                        "rules" => "integer");

                
                $this->campos[] = array("realname" => "idfactura",
                                        "clase" => "opciones",
                                        "label" => "Factura",
                                        "modelo" => "Factura",
                                        "rules" => "integer");
                
    }
     
 
}


?>
